home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / blackscreen / RCS / blackscreen.c,v < prev    next >
Encoding:
Text File  |  1991-08-12  |  1.5 KB  |  82 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     91.08.12.16.23.19;  author dlong;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     88.10.27.16.45.17;  author ouster;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @added exit(0)
  27. @
  28. text
  29. @/* 
  30.  * blackscreen.c --
  31.  *
  32.  *    Source code for the "blackscreen" program, which turns
  33.  *    the screen black until a character is typed.
  34.  *
  35.  * Copyright 1988 Regents of the University of California
  36.  * Permission to use, copy, modify, and distribute this
  37.  * software and its documentation for any purpose and without
  38.  * fee is hereby granted, provided that the above copyright
  39.  * notice appear in all copies.  The University of California
  40.  * makes no representations about the suitability of this
  41.  * software for any purpose.  It is provided "as is" without
  42.  * express or implied warranty.
  43.  */
  44.  
  45. #ifndef lint
  46. static char rcsid[] = "$Header: /sprite/src/cmds/blackscreen/RCS/blackscreen.c,v 1.1 88/10/27 16:45:17 ouster Exp Locker: dlong $ SPRITE (Berkeley)";
  47. #endif not lint
  48.  
  49. #include <stdio.h>
  50. #include <sys.h>
  51.  
  52. main(argc, argv)
  53.     int argc;
  54.     char *argv[];
  55. {
  56.     char    c;
  57.  
  58.     if (argc == 1) {
  59.     Sys_EnableDisplay(FALSE);
  60.     (void) getchar();
  61.     Sys_EnableDisplay(TRUE);
  62.     } else if (argv[1][1] == 'n') {    /* on */
  63.     Sys_EnableDisplay(TRUE);
  64.     } else {
  65.     Sys_EnableDisplay(FALSE);    /* off */
  66.     }
  67.     exit(0);
  68. }
  69. @
  70.  
  71.  
  72. 1.1
  73. log
  74. @Initial revision
  75. @
  76. text
  77. @d18 1
  78. a18 1
  79. static char rcsid[] = "$Header: proto.c,v 1.2 88/03/11 08:39:08 ouster Exp $ SPRITE (Berkeley)";
  80. d39 1
  81. @
  82.